import request from '@/utils/request'

// 查询直播间信息列表
export function listLivebroadcastingroom(query) {
  return request({
    url: '/system/Livebroadcastingroom/list',
    method: 'get',
    params: query
  })
}

// 查询直播间信息详细
export function getLivebroadcastingroom(roomId) {
  return request({
    url: '/system/Livebroadcastingroom/' + roomId,
    method: 'get'
  })
}

// 新增直播间信息
export function addLivebroadcastingroom(data) {
  return request({
    url: '/system/Livebroadcastingroom',
    method: 'post',
    data: data
  })
}

// 修改直播间信息
export function updateLivebroadcastingroom(data) {
  return request({
    url: '/system/Livebroadcastingroom',
    method: 'put',
    data: data
  })
}

// 删除直播间信息
export function delLivebroadcastingroom(roomId) {
  return request({
    url: '/system/Livebroadcastingroom/' + roomId,
    method: 'delete'
  })
}
